package com.yehangtech.designpattern.结构型_桥接.channel;


import com.yehangtech.designpattern.结构型_桥接.mode.IPayMode;

import java.math.BigDecimal;

public class ZFBPay extends AbstractPay {
    public ZFBPay(IPayMode payMode) {
        super(payMode);
    }

    @Override
    public String transfer(String uId, String tradeId, BigDecimal amount) {
        System.out.println("支付宝支付开始。。。。");
        System.out.println("模拟人脸检验。。。。");
        boolean security = payMode.security(uId);
        if (security) {
            return "1";
        }
        return "0";
    }
}
